<?php

namespace App\Admin;

use Illuminate\Database\Eloquent\Model;

class Auth extends Model
{

    protected $table='auth';
//  关闭更新时间字段
    public $timestamps=false;
//  权限表id 有父权限pid  自表连接
    public function Auth(){
        return $this->hasOne('App\Admin\Auth','id','pid');
    }
}
